# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=font-roboto
pkgver=2.138
pkgrel=1
pkgdesc="Standard font for Android 4.0 (Ice Cream Sandwich) and later"
url="https://github.com/google/roboto"
arch="noarch"
license="Apache-2.0"
source="$pkgname-$pkgver.zip::https://github.com/google/roboto/releases/download/v$pkgver/roboto-unhinted.zip
	90-roboto-regular.conf
	"
options="!check" # No code to test
builddir="$srcdir"

package() {
	find . -name "*.ttf" -maxdepth 1 | while read -r i; do
		install -Dm644 $i -t "$pkgdir"/usr/share/fonts/TTF
	done

	install -Dm644 "$srcdir"/90-roboto-regular.conf -t "$pkgdir"/etc/fonts/conf.d
}

sha512sums="4cfd20a1e19a986b17f731745a4d5ee909b852649e340d25de8197fbf6656005ccd3b4c591641938edbfebf0de81c71366a2afa007bb403285dea4d3dbfbd2a0  font-roboto-2.138.zip
cf8e84eeff7c34d5d218c283c43a0440c2af6e46d6d7f8d68c5d0eb5fe6431ce3ecb89ce9f558cbca24a23658e315d2dea4472fd3905ad9f236efda4b7a8a8c0  90-roboto-regular.conf"
